package com.higgins.lawapp.server.dataItemModel;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.higgins.lawapp.client.settings.dataItemModel.DataItemDTO;
import com.higgins.lawapp.client.settings.dataItemModel.DataItemInstanceDTO;
import com.higgins.lawapp.client.settings.dataItemModel.DataItemLevelDTO;

@PersistenceCapable
public class DataItemInstance {
	@SuppressWarnings("unused")
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String dataItemInstance;
	
	public Key getKey()	{
		return key;
	}
	public void setDataItemInstance(String dataItemInstance)	{
		this.dataItemInstance = dataItemInstance;
	}
	public String getDataItemInstance()	{
		return dataItemInstance;
	}
	public void setDataItemInstanceDTO(DataItemInstanceDTO dataItemInstanceDTO)	{
		this.dataItemInstance = dataItemInstanceDTO.getDataItemInstance();
	}
	public DataItemInstanceDTO getDataItemInstanceDTO()	{
		DataItemInstanceDTO dataItemInstanceDTO = new DataItemInstanceDTO();
		dataItemInstanceDTO.setDataItemInstance(dataItemInstance);
		return dataItemInstanceDTO;
	}
}
